/*
Project: 		The Impact of Short-Term Employment for Low-Income Youth: Experimental 	
				Evidence from the Philippines
Authors: 		Emily A. Beam and Stella Quimbo

***********************************
Path: 			code/02_analysis
File name: 		figure_a01.do 
***********************************

Purpose: 		Generates appendix figure 1

Inputs: 		spes_data.dta
Outputs: 		02_figures/figure_a01.png

Log: 			results/03_output/log_figure_a01.log		

Last updated: 	16 November 2021

*/ 

cap log close 
log using "$output/log_figure_a01.log",replace

use "$usedata_analysis/spes_data",clear 

graph twoway histogram _bb_age if _bb_age !=0 & _bb_edulvl == 0 & _bb_age <=25 & _bb_age >=15,discrete color(blue%50) freq|| histogram _bb_age if _bb_age !=0 & _bb_edulvl == 1 & _bb_age <=25 & _bb_age >=15,discrete color(orange%50) legend(lab(1 "High school") lab(2 "Post-secondary") region(lcolor(white))) ytitle("Number of applicants") freq xtitle("Applicant age") xscale(range(15 25)) xlabel(15(1)25,noticks) graphregion(color(white))

graph export "$figures/figure_a01.png",replace


log close


